﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="KnowFirstWebApplication._Default" MasterPageFile="~/Site1.Master" MaintainScrollPositionOnPostback="true" EnableSessionState="ReadOnly" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content runat="server" ID="CategoryContent" ContentPlaceHolderID="ContentPlaceHolder1" >

    <div id="CategoriesTitle" style="vertical-align: middle; text-align: right" >
    <h3 dir="rtl" style="color: #996633" >הגדרות:</h3>
    </div>
    <div id="settings">
    <table class="style1">
        <tr>
            <td class="style2" 
                style="padding: 7px; border-width: 1px; margin: 7px; border-bottom-style: dashed">
          <div id="categorySelection"  class="querySelectionDivs">
        <asp:Label ID="Label6" runat="server" Text="בחר קטגוריה"></asp:Label><br />
   
    	<asp:DropDownList id="lbCategories" runat="server" Width="127px" Height="22px" 
                  AutoPostBack="True" onselectedindexchanged="lbCategories_SelectedIndexChanged">
		</asp:DropDownList><br />
		
                    </div>
		    </td>
            <td style="padding: 7px; border-width: 1px; margin: 7px; border-bottom-style: dashed">
		
                <div id="categoryName" dir="rtl" style="text-align: center">
                <asp:Label ID="Label5" runat="server" Text="שם הקטגוריה:"></asp:Label>
                <asp:TextBox ID="tbCategoryName" runat="server" Width="106px"></asp:TextBox>
		</div>
    	
            </td>
            <td dir="rtl" 
                style="padding: 7px; border-width: 1px; margin: 7px; border-bottom-style: dashed">
            <div id="CleanForm" dir="rtl" style="text-align: center" align="right" >
                <asp:Button ID="btnClearForm" runat="server" Height="21px" 
                    Text="צור קטגוריה חדשה" onclick="btnClearForm_Click" 
                    style="margin-right: 1px" Width="150px" /><br />
                <asp:Button ID="btnDeleteCategory" BackColor=Red runat="server" 
                    Text="מחק קטגוריה נוכחית" onclick="btnDeleteCategory_Click" 
                    style="margin-right: 0px" Width="150px" /> 
                    </div>
                </td>
        </tr>
        <tr >
            <td class="style7" 
                style="padding: 7px; border-width: 1px; margin: 7px; border-bottom-style: dashed">
    <asp:Label ID="Label1" runat="server">נושא חדש : </asp:Label>
                <br />
    <asp:TextBox ID="tbNewQuery" runat="server"></asp:TextBox>
            </td>
            <td class="style9" 
                style="padding: 7px; border-width: 1px; margin: 7px; border-bottom-style: dashed">
          <div id="TopicAddRemoveButtons" style="vertical-align: middle; text-align: center">
   	<asp:Button name="btnAdd" Text="הוסף" runat="server" style="width: 55px" ID="btnAddQuery" 
                  onclick="btnAddQuery_Click"/><br />
   	<asp:Button name="btnRemove" Text="הסר " runat="server" style="width: 55px" 
                  ID="btnRemoveQuery" onclick="btnRemoveQuery_Click" />
   	  </div>
   	</td>
            <td class="style9" 
                style="padding: 7px; border-width: 1px; margin: 7px; border-bottom-style: dashed">
     <asp:ListBox ID="lbQueries" runat="server" style="margin-right: 0px" Height="110px" 
                    Width="202px"></asp:ListBox>
            </td>
        </tr>
        <tr>
            <td class="style4" 
                style="padding: 7px; border-width: 1px; margin: 7px; border-bottom-style: dashed">
            <div id="SiteSelection">
                <asp:Label ID="Label3" runat="server" Text="בחר אתרים:"></asp:Label>
                <br />
                    <asp:DropDownList ID="cbAllSites" runat="server">
                </asp:DropDownList>
                    <br />
                    </div>
            </td>
            <td class="style4" 
                style="padding: 7px; border-width: 1px; margin: 7px; border-bottom-style: dashed">
                <div id="AddRemoveSites" style="vertical-align: middle; text-align: center">
                <asp:Button id="btnAddSite" Text="הוסף" runat="server" style="width: 55px" onclick="btnAddSite_Click" 
                       />
                <br />
                    </div>
                    </td>
            <td class="style4" 
                style="padding: 7px; border-width: 1px; margin: 7px; border-bottom-style: dashed">
              <div id="ReorderSites" style="vertical-align: middle;" dir="rtl">
            <asp:Label ID="bla" runat="server">סדר לפי עדיפות : </asp:Label><br />
                <cc1:ReorderList ID="rlSelectedSites" runat="server" DragHandleAlignment="Left" 
                      AllowReorder="True" PostBackOnReorder="False" 
                      onitemreorder="rlSelectedSites_ItemReorder" 
                      ondeletecommand="rlSelectedSites_DeleteCommand" >
                <ItemTemplate>
                <div style="background-color: #DDE4EA"> 
                <asp:Label runat="server"> <%# Eval("DisplayNameProperty") %> </asp:Label>
                    <asp:Button runat="server" Text="הסר" CommandName="Delete" 
                        CommandArgument='<%#Eval("SiteNameProperty")%>' />
               </div>
                </ItemTemplate>
                <DragHandleTemplate>
                   <asp:Panel ID="dragHandle" runat="server" style="height: 20px; width: 20px; border: solid 1px black; background-color: #996633; cursor: move;" Visible="true"></asp:Panel>
                </DragHandleTemplate>
                <ReorderTemplate>
                <div dir="rtl">
                <asp:Panel ID="Panel1" runat="server" BackColor="#DDE4EA" Height="20px">
                    </asp:Panel>
                </div>
                </ReorderTemplate>
                </cc1:ReorderList>
                  <asp:ObjectDataSource ID="Sites" runat="server"></asp:ObjectDataSource>
                <asp:ScriptManager ID="asm" runat="server" />
                </div>
            </td>
        </tr>
        <tr>
            <td class="style4" colspan="3" 
                style="padding: 7px; border-width: 1px; margin: 7px; border-bottom-style: dashed">
                <asp:Label ID="Label4" runat="server" Text="בחר סוגי תוכן:"></asp:Label>
     <asp:CheckBoxList runat="server" id="cblDocumentTypes" RepeatDirection="Horizontal" 
                    Height="16px" Width="315px"></asp:CheckBoxList>
            </td>
        </tr>
        <tr>
            <td class="style2" 
                style="padding: 7px; border-width: 1px; margin: 7px; border-bottom-style: dashed">
       
        <div id="DateSelection">
       <asp:Label ID="Label2" Text="בחר זמני עדכון:" runat="server"></asp:Label>
   <br />
   
       <asp:DropDownList ID="cbHour" runat="server">
       </asp:DropDownList>
       <br />
       <asp:DropDownList ID="cbDay" runat="server" 
           style="">
       </asp:DropDownList>
      
            <br />
            <asp:CheckBox ID="cbRealTimeUpdates" runat="server" Text="עדכונים בזמן אמת : " 
                TextAlign="Left" />
      
       </div>
            </td>
            <td style="padding: 7px; border-width: 1px; margin: 7px; border-bottom-style: dashed;">
                <br />
                <div id="AddRemoveDates" style="vertical-align: middle; text-align: center">
                <asp:Button id="btnAddDate" Text="הוסף" runat="server" style="width: 55px" 
                        onclick="btnAddDate_Click"/>
                <br />
                 <asp:Button id="btnRemoveDate" runat="server"
                   Text="הסר" style="width: 55px" onclick="btnRemoveDate_Click"/>
                    </div>
                    </td>
            <td style="padding: 7px; border-width: 1px; margin: 7px; border-bottom-style: dashed">
       <asp:ListBox ID="lbTimes" runat="server" Height="110px" Width="202px">
       </asp:ListBox>
            </td>
        </tr>
        <tr>
            <td class="style10">
                </td>
            <td class="style6">
   <div id="submit" style="text-align: center">
   <asp:Button runat="server" Text="שמור" id="btnSubmit" Width="99px" 
           onclick="btnSubmit_Click"></asp:Button>
   </div>
            </td>
            <td class="style6">
                &nbsp;</td>
        </tr>
    </table>
    </div>
    
 </asp:Content>